From 35c295da89229feb759d2c5915947379ad312d68 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 8 Jan 2013 17:37:58 +0100 Subject: [PATCH] broadway: Don't allow dragging windows above top of window This is highly confusing and makes it impossible to get the windows back. --- gdk/broadway/broadway.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js index 8f20cce213..a53f837bd0 100644 --- a/gdk/broadway/broadway.js +++ b/gdk/broadway/broadway.js @@ -838,6 +838,8 @@ function onMouseMove (ev) { surface.x += dx; surface.y += dy; var offset = getFrameOffset(surface); + if (surface.y < offset.y) + surface.y = offset.y; localGrab.frame.style["left"] = (surface.x - offset.x) + "px"; localGrab.frame.style["top"] = (surface.y - offset.y) + "px"; sendConfigureNotify(surface); -- 2.30.2